<?php

class Teaching extends BaseTeaching
{
	public function save(PropelPDO $con = null) 
	{
		//sfContext::createInstance($this->configuration);
		$request = sfContext::getInstance()->getRequest();
		$status = $this->getTeachingStatus();
		if( !isset($status) )
			$this->setTeachingStatus(0);
		//$response = sfContext::getInstance()->getResponse();  	
		$con->beginTransaction();
		try
		{
			$res = parent::save($con);
			$con->commit();
			return $res;
		} catch (Exception $e) {
			$con->rollBack();
			throw $e;
		}
	}
}
